package com.tanjie.blackbean.iot.simulator.model.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * 设备表
 *
 * @author tanjie
 * @since 2022-06-22
 */
@Getter
@Setter
@ToString
@TableName("iot_device")
@Schema(name = "IotDevice", description = "设备表")
public class IotDevice  {

    @Schema(description = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @Schema(description = "设备编码")
    @TableField("`code`")
    private String code;

    @Schema(description = "设备名称")
    @TableField("`name`")
    private String name;

    @Schema(description = "设备类型")
    @TableField("`type`")
    private String type;

    @Schema(description = "组织机构id")
    @TableField("org_id")
    private String orgId;

    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private String createBy;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_by", fill = FieldFill.UPDATE)
    private String updateBy;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
